Joshua King scored a dramatic late equaliser for Bournemouth as Liverpool dropped two crucial points at Anfield.